
// 创建一个路由  createRouter
import {createRouter,createWebHistory} from "vue-router"

//引入要呈现的vue页面 src\components\user\user.vue
import user from "../components/user/user.vue"
import AddUser from "../components/user/AddUser.vue"
import path from "path"

//创建路由器
const router =createRouter({
    history:createWebHistory(),
    routes:[
        {
            path:"/user",
            component:user
        },
        {
            path:"/adduser",
            component:AddUser
        }
    ]
})

//路由暴漏出去
export default router
